package com.elric.mall.mapper;

import com.elric.mall.model.TaskUnit;
import com.elric.mall.model.TaskUnitExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface TaskUnitMapper {
    long countByExample(TaskUnitExample example);

    int deleteByExample(TaskUnitExample example);

    int deleteByPrimaryKey(String id);

    int insert(TaskUnit record);

    int insertBatch(List<TaskUnit> record);

    int insertSelective(TaskUnit record);

    List<TaskUnit> selectByExample(TaskUnitExample example);

    List<TaskUnit> selectByTaskId(String taskId);

    TaskUnit selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TaskUnit record, @Param("example") TaskUnitExample example);

    int updateByExample(@Param("record") TaskUnit record, @Param("example") TaskUnitExample example);

    int updateByPrimaryKeySelective(TaskUnit record);

    int updateByPrimaryKey(TaskUnit record);
}